import { get, post } from '../utils/request'
import { BACKEND_ROOT } from '../Contants';

// 根据platformCode拆线呢企业平台信息
export const getUnitPlatformByCode = function (params) {
    return get('/unitPlatform/getUnitPlatformByCode', params)
}
// 添加尾矿库信息
export const addTailingPond = function (data) {
    return post('/tailingPond/addTailingPond', data)
}
//删除
export const deleteTailingPond = function (params) {
    return get('/tailingPond/deleteTailingPond', params)
}
// 查询行业列表
export const getIndustryTypeList = function (params) {
    return get('/tailingPond/getIndustryTypeList', params)
}
// 查询矿种列表
export const getMineralsSpeciesList = function (params) {
    return get('/tailingPond/getMineralsSpeciesList', params)
}
// 查询运行状态列表
export const getOperatingStatusList = function (params) {
    return get('/tailingPond/getOperatingStatusList', params)
}
// 根据id查询尾矿库
export const getTailingPond = function (params) {
    return get('/tailingPond/getTailingPond', params)
}
// 分页查询尾矿库
export const getTailingPondByPage = function (params) {
    return get('/tailingPond/getTailingPondByPage', params)
}
// 查询尾矿库列表
export const getTailingPondList = function (params) {
    return get('/tailingPond/getTailingPondList', params)
}
// 查询尾矿库类型列表
export const getTailingTypeList = function () {
    return get('/tailingPond/getTailingTypeList',)
}
// 根据id查询测点
export const searchStationInfor = function (data) {
    return post('/monitorPoint/getMonitorPoint/{id}', data)
}
// 分页查询测点
export const getStationInforPage = function (params) {
    return get('/monitorPoint/getMonitorPointByPage', params)
}
// 查询测点列表
export const getMonitorPointList = function (data) {
    return get('/monitorPoint/getMonitorPointList', data)
}
// 查询测点类型列表
export const getMonitorTypeList = function (params) {
    return get('/monitorPoint/getMonitorTypeList', params)
}
// 修改测点
export const updateMonitorPoint = function (data) {
    return post('/monitorPoint/updateMonitorPoint', data)
}
//分页查询设备信息
export const getSensorInforController = function (params) {
    return get('/sensor/getSensorInfoByPage', params)
}
//查询设备列表
export const getSensorInforLists = function (params) {
    return get('/sensor/getSensorInfoList',params)
}
//查询设备列表
export const getSensorInforControllerList = function (params) {
    return get('/sensor/updateSensorInfo', params)
}
// // 查询实时数据
// export const getRealTime = function (params) {
//     return get('/sensor/updateSensorInfo', params)
// }

//分页查询用户
export const getUserByPage = function (params) {
    return get('/user/getUserByPage', params)
}
//新增用户
export const addUser = function (data) {
    return post('/user/addUser', data)
}
//分页查询角色
export const getRoleByPage = function (params) {
    return get('/role/getRoleByPage', params)
}
//根据id查询角色
export const getRoleById = function (params) {
    return get('/role/getRole/{id}', params)
}
//根据查询用户绑定的企业信息
export const getUnitFormList = function (params) {
    return get('/unitPlatform/getUnitPlatformList', params)
}
// 分页查询安全巡查信息 
export const getSafetyInspectorListByPage = function (params) {
    return get('/inspection/getInspectionListByPage', params)
}
//查询用户列表
export const getUserList = function (params) {
    return get('/user/getUserList', params)
}
// 分页查询调洪演算历史结果数据
export const getFloodRoutingHistoryByPage = function (params) {
    return get('/floodRouting/getFloodRoutingHistoryByPage', params)
}
// 图片调用
export const imgUrl = BACKEND_ROOT + '/image/view/'

